
<script type="text/html" id="tp-package-lit">
<table class="table table-hover table-striped table-bordered">
<tr>
    <th>报名编号</th>
    <th>姓名</th>
    <th>电话</th>
    <th>打开目录</th>
    <th>打包上传</th>
    <th>短信通知</th>
</tr>
<tbody id="applylist-container">   
#scope.applylist.forEach(function(item,i){
    <tr>
        <td>{{=item.no}}</td>
        <td>{{=item.name}}</td>
        <td>{{=item.tel}}</td>

        <td data-id="{{=item.id}}"  data-dir="{{=scope.activityno}}/{{=item.no}}">
            <button type="button" class="btn btn-link open-finish">打开目录</button>
        </td>

        <td data-id="{{=item.id}}"  data-dir="{{=scope.activityno}}/{{=item.no}}">
        #if(item.upstatus==3){
            <span class="uploaded">已上传</span>
            <button type="button" class="btn btn-link repackage">重新打包上传</button>
        #}else{
            <span class="unupload">未上传</span>
            <button type="button" class="btn btn-link package">打包上传</button>
        #}            
        </td>

        <td data-id="{{=item.id}}"  data-dir="{{=scope.activityno}}/{{=item.no}}">
        #if(item.smsstatus==2){
            <span class="uploaded">已发送</span>
            <button type="button" class="btn btn-link send-sms-email">重新发送</button>
        #}else{
            <span class="unupload">未发送</span>
            <button type="button" class="btn btn-link send-sms-email">发送通知</button>
        #}            
        </td>
    </tr>
#});
</tbody>       

</table>

</script>
<style>
    .uploaded{
        color:#00a65a;
    }

    .unupload{
        color:#f39c12;
    }
</style>